home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / WINHAK95.ZIP / PLUGINS / EXAMPL~3.WH < prev    next >
Encoding:
Text File  |  1996-05-07  |  1.9 KB  |  88 lines

  1. // WinHacker Script
  2. // Copyright (c) 1996 Wedge Software
  3. //
  4. // Example INI script
  5. //
  6. // For best testing results, put a "file.ini" file (blank)
  7. // into the c:\ directory.
  8. //
  9. // The file will be created if not there (using the direct method,
  10. // putting "c:\" in the location, and "file.ini" as the file.
  11. // The user can create it also by putting "file.ini" in the Open
  12. // dialog box (in the file space), even though it is not there.
  13.  
  14. [Main]
  15. Desc = Full INI file example
  16. // Ask = Click on NO, this is not meant to be run!
  17. // StartMessage = This is a start message.
  18. // ExitMessage = This is a exit message.
  19.  
  20. [Ini]
  21. Procs = 5
  22.  
  23. // Create the file if not there
  24.  
  25. [IniProc#1]
  26. // Ask = Run IniProc#1?
  27. Location = c:\
  28. File = file.ini
  29. Section = Junk Section
  30. Item = Junk
  31. Action = Write
  32. Value = This was written just to create the file...
  33.  
  34.  
  35. // Browse for the file.ini
  36. //
  37.  
  38. [IniProc#2]
  39. // Ask = Run IniProc#2?
  40. Location = (Browse)
  41. File = file.ini
  42. Section = General
  43. Item = INIProc#1 String
  44. Action = Write
  45. Value = This was written by INIProc#1
  46.  
  47. // Browse and ask for value
  48. //
  49.  
  50. [IniProc#3]
  51. // Ask = Run IniProc#3?
  52. Location = (Browse)
  53. File = file.ini
  54. Section = General
  55. Item = INIProc#3
  56. Action = Write
  57. Value = (dialog)
  58. Value.dialog.text = This is a test of a INI file dialog, write a string
  59. Value.dialog.text2 = or intger in the space below.
  60. Value.dialog.default = INIProc#3 wrote this!
  61.  
  62. // Normal (Access the file directly, don't ask where it is)
  63. //
  64. // NOTE: file.ini will be created / opened in the Windows dir if not there
  65. //
  66.  
  67. [IniProc#4]
  68. Ask = Create value to be deleted later? (INIProc#4 is the name of the item)
  69. Location = c:\
  70. File = file.ini
  71. Section = General
  72. Item = INIProc#4
  73. Action = Write
  74. Value = INIProc#3 wrote this, it will be deleted
  75.  
  76.  
  77. // Delete
  78. //
  79.  
  80. [IniProc#5]
  81. Ask = Delete the value?
  82. Location = c:\
  83. File = file.ini
  84. Section = General
  85. Item = INIProc#4
  86. Action = Delete
  87.  
  88.